{extend name="base" /}
{block name="content"}
<div class="g-main">
    <div class="m-main-title">
        <div class="m-container-fluid">
            <a href="{:url('index/welcome')}"><i class="icon icon-home"></i>首页</a>
            <span class="icon-angle-right"></span>
            <span>运营</span>
            <span class="icon-angle-right"></span>
            <span>商户管理</span>
            <span class="icon-angle-right"></span>
            <span>审核列表</span>
            <a class="u-flush"><i class="icon-repeat"></i></a>
        </div>
    </div>
    <div class="m-main-content">
        <div class="m-container">
<!--            <table class="m-table">-->
<!--                <tr>-->
<!--                    <th>-->
<!--                        <div class="m-options cf">-->
<!--                            <div class="m-opts fl"><a href="{:url('add')}" class="u-btn"><i class="icon-plus"></i>添加机构</a></div>-->
<!--                        </div>-->
<!--                    </th>-->
<!--                </tr>-->
<!--            </table>-->
            <form class="layui-form">
                <table class="m-table mt-10">
                    <tbody class="datas">
                        <tr>
                            <th width="5%" style="text-align: center;">选择</th>
                            <th width="5%">ID</th>
                            <th>用户名</th>
                            <th>联系人</th>
                            <th>身份证号</th>
                            <th>商户地址</th>
                            <th>审核状态</th>
                            <th>申请时间</th>
                            <th>操作</th>
                        </tr>
                        {foreach name="data" item="v"}
                        <tr>
                            <td align="center"><input type="checkbox" name="id[]" class="u-id" value="{$v.id}" lay-skin="primary" /></td>
                            <td>{$v.id}</td>
                            <td>{$v.username}</td>
                            <td>{$v.contact_name}</td>
                            <td>{$v.idcard_txt}</td>
                            <td>{$v.address}</td>
                            <td>{$v.status_txt}</td>
                            <td>{if $v.create_time}
                                    {$v.create_time}
                                {/if}
                            </td>
                            <td class="m-opt">
                                <a href="{:url('applyadd', ['id' => $v.id])}" title="审核">审核</a>
                                <a href="javascript:;" title="删除" class="u-del" data-id="{$v.id}"><i class="icon-trash"></i></a>
                            </td>
                        </tr>
                        {/foreach}
                        <tr>
                            <td align="center"><input type="checkbox" value="1" lay-skin="primary" lay-filter="select_ids" /></td>
                            <td colspan="11" class="m-options"><button class="u-btn u-batch-del"><i class="icon-trash"></i>批量删除</button></td>
                        </tr>
                    </tbody>
                </table>
            </form>
            {include file="public:page" /}
        </div>
    </div>
</div>
{/block}
{block name="extrajs"}
{include file="laypage" /}
{/block}